package org.example.platform.design.zerenlian;

public class Zj extends manager{
    public Zj(String name) {
        super(name);
    }

    @Override
    public void getResult(Request request) {
        if(request.getType().equals("请假") && request.getNum() <= 5){
            System.out.println("批准请假"+request.getContent()+"数量："+request.getNum());
        }else {
            if (manager != null) {
                manager.getResult(request);
            }
        }
    }
}
